package model.pojo;

import java.util.ArrayList;

public abstract class SanPham 
{
	private String maSP;
	private String tenSP;
	private int loaiSP;
	private String moTaSP;
	private double giaBan;
	private int khuyenMai;
	private int thoiGianBaoHanh;
	private int hangSanXuat;
	private int soLuongTon;
	private String tinhTrang;
	private String hienTrang;
	private int soLuotXem;
	private String linkHinhAnh;
	private int MaDongSP;
	
	public int getMaDongSP() {
		return MaDongSP;
	}

	public void setMaDongSP(int maDongSP) {
		MaDongSP = maDongSP;
	}

	public String getMaSP() 
	{
		return maSP;
	}
	
	public void setMaSP(String maSP) 
	{
		this.maSP = maSP;
	}
	
	public String getTenSP() 
	{
		return tenSP;
	}
	
	public void setTenSP(String tenSP) 
	{
		this.tenSP = tenSP;
	}
	
	public int getLoaiSP() 
	{
		return loaiSP;
	}
	
	public void setLoaiSP(int loaiSP) 
	{
		this.loaiSP = loaiSP;
	}
	
	public String getMoTaSP() 
	{
		return moTaSP;
	}
	
	public void setMoTaSP(String moTaSP) 
	{
		this.moTaSP = moTaSP;
	}
	
	public double getGiaBan() 
	{
		return giaBan;
	}
	
	public void setGiaBan(double giaBan) 
	{
		this.giaBan = giaBan;
	}
	
	public int getKhuyenMai() 
	{
		return khuyenMai;
	}
	
	public void setKhuyenMai(int khuyenMai) 
	{
		this.khuyenMai = khuyenMai;
	}
	
	public int getThoiGianBaoHanh() 
	{
		return thoiGianBaoHanh;
	}
	
	public void setThoiGianBaoHanh(int thoiGianBaoHanh) 
	{
		this.thoiGianBaoHanh = thoiGianBaoHanh;
	}
	
	public int getHangSanXuat() 
	{
		return hangSanXuat;
	}
	
	public void setHangSanXuat(int hangSanXuat) 
	{
		this.hangSanXuat = hangSanXuat;
	}
	
	public int getSoLuongTon() 
	{
		return soLuongTon;
	}
	
	public void setSoLuongTon(int soLuongTon) 
	{
		this.soLuongTon = soLuongTon;
	}
	
	public String getTinhTrang() 
	{
		return tinhTrang;
	}
	
	public void setTinhTrang(String tinhTrang)
	{
		this.tinhTrang = tinhTrang;
	}
	
	public String getHienTrang() 
	{
		return hienTrang;
	}
	
	public void setHienTrang(String hienTrang)
	{
		this.hienTrang = hienTrang;
	}
	
	public int getSoLuotXem() 
	{
		return soLuotXem;
	}
	
	public void setSoLuotXem(int soLuotXem)
	{
		this.soLuotXem = soLuotXem;
	}
	
	public abstract ArrayList<SanPham> laySanPhamMoi();

	public String getLinkHinhAnh() 
	{
		return linkHinhAnh;
	}

	public void setLinkHinhAnh(String linkHinhAnh) 
	{
		this.linkHinhAnh = linkHinhAnh;
	}
	public SanPham()
	{
		this.giaBan=0;
		this.hangSanXuat=0;
		this.hienTrang="";
		this.khuyenMai=0;
		this.linkHinhAnh="";
		this.loaiSP=0;
		this.MaDongSP=0;
		this.maSP="";
		this.moTaSP="";
		this.soLuongTon=0;
		this.soLuotXem=0;
		this.tenSP="";
		this.thoiGianBaoHanh=0;
		this.tinhTrang="";
	}
}
